angular.module('pook')
.config ($stateProvider, $urlRouterProvider,menuManageProvider) ->
    $stateProvider
    .state('login',
        url: "/login"
        templateUrl: "templates/login/login.html"
        controller: "WFLoginCtrl"
    )
    .state('logout',
        url: "/logout"
        templateUrl: "templates/logout/logout.html"
        controller: "WFLogoutCtrl"
    )
    .state('refreshContent',
        url: "/refreshContent"
        templateUrl: "templates/refresh-content/refreshContent.html"
        controller: "RefreshContentCtrl"
    )
    .state('mockMenuClick',
        url: "/mockMenuClick"
        templateUrl: "templates/mock-menu-click/mockMenuClick.html"
        controller: "MockMenuClickCtrl"
    )
    .state('scheduling',
        url:'/scheduling',
        templateUrl: "templates/scheduling/scheduling.html"
        controller:'WFSchedulingCtrl'
    )
    .state('main',
        url:"/:uri"
        views:menuManageProvider.$get().genViews(),
        controller: "WFMainCtrl"
        cache:false
        params:
            uri:'main'
    )
    $urlRouterProvider.otherwise 'login'
